import { Component } from "react";
import style from './MyHeader.module.css'

export default class MyHeader extends Component {
    render() { 
        const { title,onBack } = this.props;
        return(
            <>
                <div className={style.myHeader}>
                    <div className={style.title}>{title}</div>
                    <div className={style.backHone} onClick={onBack}>注销</div>
                </div>
            </>
        )
    }
}